//void, ObjList objs, point pt, Obj obj, bool bReplace, bool bModifier, int player

int i;
Unit u;
Hero h;
	
for(i = 0; i < objs.count(); i += 1){
	u = objs[i].AsUnit;
	if(u.IsValid){
		h = u.hero;
		if(h.IsValid) u.DetachFrom(h);                     
	}
	// no sleep !
}
